﻿using CarEdge.Infrastructure.Attr;
using CarEdge.Infrastructure.Dto.Request.login;
using CarEdge.Infrastructure.Dto.Response;
using CarEdge.Infrastructure.EFCore.MySql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarEdge.Service.Interface
{
    [Provider_]
    public interface I_Login_Service
    {
        /// <summary>
        /// 查询用户最后登录时间的code
        /// </summary>
        /// <param name="code"></param>
        /// <param name="v"></param>
        /// <returns></returns>
        Task<SysUser?> Get_User_ByLastCode(string code, string v);

        /// <summary>
        /// 管理员登录 
        /// </summary>
        /// <param name="dto"></param>      
        /// <returns></returns>
        Task<Api_Response_Dto> Logins(Login_Request_Dto dto);

    }
}
